package com.bwie.test;

import java.util.concurrent.Callable;

/**
 * description:
 *
 * @Author caoshuaifeng
 * @Create 2025/4/25 20:44
 * @Version 1.0
 */
public class MyCallable implements Callable<Integer> {
    @Override
    public Integer call() throws Exception {
        //计算1-100的和
        int sum = 0;
        for (int i = 1; i <=100; i++) {
            sum += i;
        }
        return sum;
    }
}
